package com.nanxun.config;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 阿里云平台-对象存储OSS服务配置类
 * 
 * @param
 * @return 
 * @author nanxun
 * @create 2025/6/15
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@RefreshScope
public class AliyunOSSConfig {
    
 /**
  * 访问地址
  *
 * @param null
  * @return
  * @author nanxun
  * @create 2025/6/15
  **/
    private String endpoint;
    
    /**
     * bucket名称
     * 
 * @param null
     * @return 
     * @author nanxun
     * @create 2025/6/15
     **/
    private String bucketName;


    /**
     * 访问id
     * 
 * @param null
     * @return 
     * @author nanxun
     * @create 2025/6/15
     **/
    private String accessKeyId;


    /**
     * 访问秘钥
     *
 * @param null
     * @return
     * @author nanxun
     * @create 2025/6/15
     **/
    private String accessKeySecret;
}
